<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>


		<title>操作员列表</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<script type="text/javascript">
	     function deleteAgent(id){
		 if(confirm('确定要删除吗?'+id)){
			document.all('operator.uno').value=id;
		    document.getElementById("dForm").submit();
		 }
      }
	</script>

	</head>

	<body>
		<table width="80%">
			<tr align="center">
				<td>
					登录名
				</td>
				<td>
					真实姓名
				</td>
				<td>
					联系电话
				</td>
				<td>
					Email
				</td>
				<td>
					注册时间
				</td>
				<td>
					状态
				</td>
				<td>
					操作
				</td>
			</tr>
			<s:iterator value="pager.data">
				<tr align="center">
					<td>
						${loginName }
					</td>
					<td>
						${trueName }
					</td>
					<td>
						${tel }
					</td>
					<td>
						${email }
					</td>
					<td>
						${regTime }
					</td>
					<td>
						${status }
					</td>
					<td>
						<a
							href="javascript:deleteAgent(${id });">删除</a>&nbsp;&nbsp;
						<a
							href="/newbingo/test/Operator_findById.action?operator.uno=${id }">修改</a>&nbsp;
						<s:if test="status=='冻结'">
							<a
								href="/newbingo/test/Operator_updateStatus.action?id=${id }&status=正常">可用</a>
						</s:if>
						<s:if test="status=='正常'">
							<a
								href="/newbingo/test/Operator_updateStatus.action?id=${id}&status=冻结">禁用</a>
						</s:if>
					</td>
				</tr>
			</s:iterator>
		</table>
		<form action="/newbingo/test/Operator_delete.action" name="dForm"
			method="post">
			<input type="hidden" name="operator.uno" />
		</form>
		<div>
			<form action="/newbingo/test/Operator_create.action" method="post">
				<tr>
					<td>
						登录名：
					</td>
					<td>
						<input name="operator.uname" />
					</td>
				</tr>
				<tr>
					<td>
						真实姓名：
					</td>
					<td>
						<input name="operator.trueName" />
					</td>
				</tr>
				<tr>
					<td>
						密码：
					</td>
					<td>
						<input name="operator.upwd" />
					</td>
				</tr>
				<tr>
					<td>
						电话：
					</td>
					<td>
						<input name="operator.contactInfo.tel" />
					</td>
				</tr>
				<tr>
					<td>
						email：
					</td>
					<td>
						<input name="operator.contactInfo.email" />
					</td>
				</tr>
				</table>
				<input type="submit" value="提 交" />
			</form>
		</div>
	</body>
</html>
